import * as qiniu from 'qiniu-js'
import request from "@/api/utils/request.js";

// const qiniu = require('qiniu-js')
export const toLogin = async(loginBody) => await request.post("/login",loginBody)
export const toRegister = async(user) => await request.post("/register",user)

 export const logout = async() => await request.post("/logout")


 export const getInfo = async() => await request.get("/getInfo")

 export const getInfoById = async(uId) => await request.get(`user/${uId}`)


// export const getVideosByUserId = async (uId) => await request.get(`video/user/${uId}`)

